/**
 * @file base.h
 * @brief base interface
 * @author JakeYang <add358@gmail.com>
 * @version 0.1
 * @date 2016-02-29
 */

#ifndef __GJSON_BASE_H__
#define __GJSON_BASE_H__


#include "gjson_data.h"

G_BEGIN_DECLS

typedef struct _GJsonText GJsonText;
struct _GJsonText {
    GString *str;
    gint level;
};
#define g_json_text_free(t) (GString *msg = t->str; g_free(t); g_string_free(msg, FALSE))

#define _skip(d) g_json_data_skip(d)
#define _forward(d, s) g_json_data_forward(d, s)
#define _equal_char(d, c) g_json_data_equal_char(d, c)
#define _equal_str(d, s, len) g_json_data_equal_str(d, s, len)

G_END_DECLS

#endif /* end of include guard */
